package vip.xiaonuo.miniapp.api.miniappmemberuser.api.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@Accessors(chain = true)
@ApiModel(value = "小程序人员新增参数")
public class MiniProUserAddParam {

    /**
     * 用户名
     */
    @NotBlank(message = "用户名不能为空，请检查name参数")
    @ApiModelProperty(value = "用户名称", required = true)
    private String name;

    /**
     * 性别
     */
    @ApiModelProperty(value = "性别 1男2女")
    private Integer sex;

    /**
     * 手机号
     */
    @ApiModelProperty(value = "手机号码")
    private String tel;


    /**
     * 人脸比对照片
     */
    @ApiModelProperty(value = "人脸比对照片")
    private String photo;

    /**
     * 工号
     */
    @NotBlank(message = "工号不能为空，请检查jobNum参数")
    @ApiModelProperty(value = "工号", required = true)
    private String jobNum;

    /**
     * 身份证号
     */
    @NotBlank(message = "身份证号不能为空，请检查idCard参数")
    @ApiModelProperty(value = "身份证号", required = true)
    private String idCard;

    /**
     * IC卡号
     */
    @ApiModelProperty(value = "IC卡号", required = true)
    private String icCard;

    /**
     * 组织id
     */
    @NotNull(message = "组织id不能为空，请检查orgId参数")
    @ApiModelProperty(value = "组织id", required = true)
    private Long orgId;

    /**
     * 职位id
     */
    @NotNull(message = "职位id不能为空，请检查posId参数")
    @ApiModelProperty(value = "职位id")
    private Long posId;

    /**
     * 备注信息
     */
    @ApiModelProperty(value = "备注")
    private String remarks;

}
